package love.bot.forli.group.review.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Kontori
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "测试实体类")
public class Test {

    @ApiModelProperty(value = "测试ID")
    @TableId(value = "test_id",type = IdType.AUTO)
    private Integer testId;

    @ApiModelProperty(value = "测试人QQ", required = true)
    private String testerQq;

    @ApiModelProperty(value = "邀请人QQ")
    private String inviterQq;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "成绩")
    private Integer scoreTotal;

    @ApiModelProperty(value = "满分")
    private Integer maxScore;

    @ApiModelProperty(value = "及格成绩")
    private Integer passScore;

    @ApiModelProperty(value = "是否及格")
    private Integer pass;

}
